package com.xmg.design23.d6_bridge;

/**
 * @Author: mazhongqing
 * @Date: 2021/3/24 16:02
 */
public class Rectangle implements IShape{
    private IColor color;

    public void setColor(IColor color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("绘制"+color.getColor()+"矩形");
    }
}
